﻿@model iDMS.Models.Department

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary()
    <fieldset>
        <legend>Department</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.FullName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FullName)

        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ShortName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ShortName)

        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SupervisorEmployeeID)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.SupervisorEmployeeID, (IEnumerable<SelectListItem>)ViewBag.Employees)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DepartmentParentID)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.DepartmentParentID, (IEnumerable<SelectListItem>)ViewBag.Departments)
        </div>

        <p>
            <input type="submit" value="Submit" />
        </p>
    </fieldset>
}